package vn.edu.saigontech.ncms.service;

import java.util.Date;
import java.util.List;

import vn.edu.saigontech.ncms.model.bookstore.Item;
import vn.edu.saigontech.ncms.model.bookstore.ReturnDetail;
import vn.edu.saigontech.ncms.service.impl.ReturnDetailServiceImpl;

public interface ReturnDetailService extends GenericService<ReturnDetail, Long> {
	
	static final ReturnDetailService INSTANCE = new ReturnDetailServiceImpl();
	
	int sumOfReturn(Item item, Date toDate, boolean includeToDate);
	
	List<ReturnDetail> findByDate(Item item, Date fromDate, Date toDate);

	int sumOfReturnByDate(Item item, Date fromDate, Date toDate);
}